package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.web.system.pojo.base.TSBaseUser;
import org.jeecgframework.web.system.pojo.base.TSUser;

/**   
 * @Title: Entity
 * @Description: 文章管理
 * @author zhangdaihao
 * @date 2016-08-25 11:01:48
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_article", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallArticleEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.String id;
	/**文章标题*/
	private java.lang.String articletitle;
	/**文章内容*/
	private java.lang.String articlecontent;
	/**文章分类*/
	private java.lang.String articlecategoryid;
	/**排序*/
	private java.lang.Integer sort;
	/**是否置顶*/
	private java.lang.Integer istop;
	/**创建人*/
	private java.lang.String createuserid;
	/**创建时间*/
	private java.util.Date createtime;


	/*文章分类*/
	private MallArticleCategoryEntity mallArticleCategoryEntity;
	/*用户*/
	private TSBaseUser baseUser;
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=36)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  文章标题
	 */
	@Column(name ="ARTICLETITLE",nullable=true,length=100)
	public java.lang.String getArticletitle(){
		return this.articletitle;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  文章标题
	 */
	public void setArticletitle(java.lang.String articletitle){
		this.articletitle = articletitle;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  文章内容
	 */
	@Column(name ="ARTICLECONTENT",nullable=false,length=8000)
	public java.lang.String getArticlecontent(){
		return this.articlecontent;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  文章内容
	 */
	public void setArticlecontent(java.lang.String articlecontent){
		this.articlecontent = articlecontent;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  文章分类
	 */
	@Column(name ="ARTICLECATEGORYID",nullable=false,length=36)
	public java.lang.String getArticlecategoryid(){
		return this.articlecategoryid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  文章分类
	 */
	public void setArticlecategoryid(java.lang.String articlecategoryid){
		this.articlecategoryid = articlecategoryid;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  排序
	 */
	@Column(name ="SORT",nullable=false,precision=10,scale=0)
	public java.lang.Integer getSort(){
		return this.sort;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  排序
	 */
	public void setSort(java.lang.Integer sort){
		this.sort = sort;
	}
	/**
	 *方法: 取得java.lang.Object
	 *@return: java.lang.Object  是否置顶
	 */
	@Column(name ="ISTOP",nullable=false,precision=1)
	public java.lang.Integer getIstop(){
		return this.istop;
	}

	/**
	 *方法: 设置java.lang.Object
	 *@param: java.lang.Object  是否置顶
	 */
	public void setIstop(java.lang.Integer istop){
		this.istop = istop;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  创建人
	 */
	@Column(name ="CREATEUSERID",nullable=false,length=36)
	public java.lang.String getCreateuserid(){
		return this.createuserid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  创建人
	 */
	public void setCreateuserid(java.lang.String createuserid){
		this.createuserid = createuserid;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  创建时间
	 */
	@Column(name ="CREATETIME",nullable=false)
	public java.util.Date getCreatetime(){
		return this.createtime;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  创建时间
	 */
	public void setCreatetime(java.util.Date createtime){
		this.createtime = createtime;
	}

	@OneToOne
	@JoinColumn(name = "articlecategoryid", insertable = false, updatable = false)
	public MallArticleCategoryEntity getMallArticleCategoryEntity() {
		return mallArticleCategoryEntity;
	}

	public void setMallArticleCategoryEntity(MallArticleCategoryEntity mallArticleCategoryEntity) {
		this.mallArticleCategoryEntity = mallArticleCategoryEntity;
	}

	@OneToOne
	@JoinColumn(name = "createuserid", insertable = false, updatable = false)
	public TSBaseUser getBaseUser() {
		return baseUser;
	}

	public void setBaseUser(TSBaseUser baseUser) {
		this.baseUser = baseUser;
	}
}
